import request from '@/utils/request'
// import { rsaEncrypt } from '@/utils/commonUtil3'

// 获取分账流水列表
export function getStoreEntries(data) {
  return request({
    url: '/divide/getList',
    method: 'get',
    params: data
  })
}
export function getFinanceTotal(data){
  return request({
    url: '/divide/getListTotal',
    method: 'get',
    params: data
  })
}

// 获取分账流水详情
export function getStoreEntry(data) {
  return request({
    url: '/divide/getOrderDetail',
    method: 'get',
    params: data
  })
}

export const getShopList = (data) => request({ url: '/ledger/getStoreList', method: 'GET', params: data })
// 获取门店详情
export const reqStoreById = (data) => request({ url: '/ledger/getStoreDetail', method: 'GET', params: data })

// 获取退款列表
export function getReimburseList(data) {
  return request({
    url: '/cashierReturns/selectByERP',
    method: 'get',
    params: data
  })
}

// 获取退款详情
export function getReimburseDetail(data) {
  return request({
    url: '/cashierReturns/selectDetailsByERP',
    method: 'get',
    params: data
  })
}
// 导出分账流水
export function exportSell(data) {
	// const data1 = rsaEncrypt(data);
	return request({
		url: '/divide/exportDivide',
		responseType: 'blob',
		method: 'POST',
		data: data
	});
}